﻿using IQIGame.Onigao.Framework;

namespace IQIGame.Onigao.GamePlay
{
    public static class UISliderExtensions
    {
        public static void SetNumberCapped(this ExSlider slider, NumerCappedRange cappedRange)
        {
            slider.minValue = cappedRange.min;
            slider.maxValue = cappedRange.max;
            slider.value = cappedRange.current;
        }
    }
}
